const http = uni.$u.http
// 根据key获取业务参数配置详细信息
export const getByKeyApi = (configKey) => http.get('/business/business/getByKey', { params: { configKey } })
export const getMyInfoApi = () => http.get('/business/user/getMyInfo')
//抽奖
export const prizeDrawApi = (data) => http.put('/business/user/prizeDraw',{}, { params: data })
// 提现
export const auditApi = (data) => http.post('/business/audit', data, { custom: { showSuccess: true, successMsg: "操作成功" } })
//流水
export const getAuditMyListApi = (query) => http.get('/business/audit/myList', { params: query })
//抽奖记录
export const getRecordsListApi = (query) => http.get('/business/records/myList', { params: query })
